Let's use an Interval Event to make fish food fall from the top of the screen every few seconds.

  • Go to and drag out Interval Event.
  • Delete the line containing the .turn_left() command.
  • Go to and drag out Random Integer. Drop it inside of the interval event.
  • Change the parameters in the .randint() command to (-250, 250).

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)